package me.winds.foundation;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import me.winds.widget.usage.TitleView;
import me.winds.wrapper.base.view.WrapperActivity;

public class MainActivity extends WrapperActivity {

    @Override
    protected int getViewLayout() {
        return R.layout.activity_main;
    }

    @Override
    protected void initView(Bundle savedInstanceState, TitleView titleView, Intent intent) {
        titleView.setTitle("Main");
    }

    public void click(View view) {
        switch (view.getId()) {
            case R.id.wrapper:

                break;
            case R.id.wrapperMvp:
                start(MvpActivity.class);
                break;
            case R.id.wrapperSwipe:
                start(SwipeActivity.class);
                break;
            case R.id.wrapperStatus:
                start(StatusActivity.class);
                break;
            case R.id.wrapperFragment:
                start(MvpActivity.class);
                break;
        }
    }

    public void start(Class clazz) {
        Intent intent = new Intent(this, clazz);
        startActivity(intent);
    }
}
